package com.wangwei.authoritySystem.mapper;

import com.wangwei.authoritySystem.pojo.Department;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Entity com.wangwei.authoritySystem.pojo.Department
 */
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 根据部门名称查询部门列表
     */
    public List<Department> selectByDepartmentName(String departmentName);

    /**
     * 删除前检查当前部门有没有子部门
     * @param id
     * @return
     */
    public int checkPid(Long id);
}




